#include "rclcpp/rclcpp.hpp"
#include "components_cpp/node1.hpp"
#include "components_cpp/node2.hpp"


int main(int args, char *argv[])
{
    rclcpp::init(args, argv);
    auto node1 = std::make_shared<Node1>();
    auto node2 = std::make_shared<Node2>();
    // auto executor = rclcpp::executors::SingleThreadedExecutor();
    rclcpp::executors::SingleThreadedExecutor executor;
    executor.add_node(node1);
    executor.add_node(node2);
    executor.spin();
    rclcpp::shutdown();
    return 0;
}